<!doctype html>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<?php $this->load->view('admin/_begin') ?>
<form accept-charset="utf-8" method="post" class="crud" enctype="multipart/form-data"
      action="<?php echo site_url('admin/'.$this->router->fetch_class() . '/update') ?>">
  <input type="hidden" value="<?php echo empty($obj['id']) ? '' : $obj['id'] ?>" name="id"/>
  <input type="hidden" value="<?php echo empty($obj['user_id']) ? '' : $obj['user_id'] ?>" name="user_id"/>
  <div class="form_inputs">
    <?php $this->load->view('admin/' . $this->router->fetch_class() . '/_form') ?>
  </div>
  <div class="buttons float-right padding-top">
    <button class="btn blue" value="save" name="btnAction" type="submit">
      <span><?php echo $this->lang->line('btn.save') ?></span>
    </button>
    <a class="btn gray cancel" href="<?php echo site_url('admin/'.$this->router->fetch_class()) ?>">
      <?php echo $this->lang->line('btn.cancel') ?>
    </a>
    <a class="confirm btn red delete" href="<?php echo site_url('admin/'.$this->router->fetch_class() . '/delete/' . $obj['id']) ?>">
      <?php echo $this->lang->line('btn.delete') ?>
    </a>
  </div>
</form>
<?php $this->load->view('admin/_end') ?>